import req from '@/apis/http';

const apigatePrefix = `//apigate.10jqka.com.cn/d/charge/portfolio`;

// 获取当前股池更新信息
export const reqRemind = params =>
  req('post', `${apigatePrefix}/trade_record/v1/latest`, '', { ...params });

// 获取精选池和跟踪池的时间列表
export const reqDateList = params =>
  req('post', `${apigatePrefix}/portfolio/v1/open_date`, '', { ...params });

// 获取精选池和跟踪池信息
export const reqPortfolioList = params =>
  req('post', `${apigatePrefix}/portfolio_item/v1/list`, '', {
    ...params,
  });

// 股池基本信息 名称 描述 视频地址
export const reqPortfolioInfo = params =>
  req('post', `${apigatePrefix}/portfolio/v1/query`, '', {
    ...params,
  });

// 跟踪池默认配置
export const reqTrackPoolCustomOptions = params =>
  req('post', `${apigatePrefix}/tracking_portfolio/v1/strategy_option`, '', {
    ...params,
  });
// 跟踪池当前配置
export const reqTrackPoolCustomStatus = params =>
  req('post', `${apigatePrefix}/tracking_portfolio/v1/query`, '', {
    ...params,
  });
// 保存跟踪池自定义配置
export const reqSaveTrakPoolCustom = params =>
  req('post', `${apigatePrefix}/tracking_portfolio/v1/save`, '', {
    ...params,
  });
